package edu.biwu;

import jakarta.servlet.*;

import java.io.IOException;

public class ServletDemo02 implements Servlet {
    public ServletDemo02() {
        System.out.println("ServletDemo02构造方法被调用..."+this);
    }
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("ServletDemo02 init方法被调用"+this);
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("ServletDemo02 service方法被调用"+this);
    }

    @Override
    public String getServletInfo() {
        return "";
    }

    @Override
    public void destroy() {
        System.out.println("ServletDemo02 destroy方法被调用");
    }
}
